<?php

class Load {

    function view($file_name, $data = null)
    {
	// Extract the $data for easier use (ex : $data['message'] -> $message)
	if (is_array($data))
	{
	    extract($data);
	}
	
	// Launch the view
	include 'application/views/' . $file_name;
    }

}

